package com.lucker.common.enums;

import com.lucker.common.util.StringUtil;

public enum MissTypeSortType {

	
	A1("1A","当前遗漏正序"),
	B1("1B","当前遗漏倒序"),
    A2("2A","欲出几率正序"),
    B2("2B","欲出几率倒序"),
    A3("3A","回补几率正序"),
    B3("3B","回补几率倒序"),
    A4("4A","最大遗漏正序"),
    B4("4B","最大遗漏倒序");
	
	
	private String code;
    private String desc;
    
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }

    private MissTypeSortType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    
    
    public static String getDescByCode(String code) {
    	
    	for (BetPlanStatus s : BetPlanStatus.values()) {
			if(StringUtil.equals(s.getCode(), code)) {
				return s.getDesc();
			}
        }
    	return null;
    }
    
    
}
